package cn.threewaters.qtyy.service.sys;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import cn.threewaters.qtyy.dic.one.dao.SysFunctionCustomDao;
import cn.threewaters.qtyy.dit.one.dao.SysFunctionDao;
import cn.threewaters.qtyy.dit.one.entity.SysFunction;

@Service
public class SysFunctionServiceImpl extends ServiceImpl<SysFunctionDao, SysFunction> implements SysFunctionService {
	@Autowired
	private SysFunctionCustomDao sysFunctionCustomDao;

	public List<Map<String, String>> getZtreeData() {
		return sysFunctionCustomDao.selectZtreeData();
	}

	public List<Map<String, String>> getRoleZtreeData(String roleId) {
		return sysFunctionCustomDao.selectRoleZtreeData(roleId);
	}
}
